/********************************************************************
	created:	2008/12/20
	created:	20:12:2008   0:36
	filename: 	g:\Projects On Develop\board-game\protype\BattleLine\BattleLine\BattleLineCard.cpp
	file path:	g:\Projects On Develop\board-game\protype\BattleLine\BattleLine
	file base:	BattleLineCard
	file ext:	cpp
	author:		Ray Xi
	
	purpose:	BattleLineCard calss
*********************************************************************/

#include "BattleLineCard.h"

CBattleLineCard::CBattleLineCard(void)
{
}

CBattleLineCard::~CBattleLineCard(void)
{
}

CBattleLineCard::CARD_DESC CBattleLineCard::ms_DescArray[] = 
{
		"red",//COLOR_RED,
		"green",//COLOR_GREEN,
		"yellow",//COLOR_YELLOW,
		"blue",//COLOR_BLUE,
		"purple",//COLOR_PURPLE,
		"earth",//COLOR_EARTH,

		"tactic leader 1",//TACTIC_Leader1,
		"tactic leader 2",//TACTIC_Leader2,
		"tactic companion cavalry",//TACTIC_Companion_Cavalry,
		"tactic shield bearers",//TACTIC_Shield_Bearers,
		"tactic fog",//TACTIC_Fog,
		"tactic mud",//TACTIC_Mud,
		"tactic scout",//TACTIC_Scout,
		"tactic redeploy",//TACTIC_Redeploy,
		"tactic deserter",//TACTIC_Deserter,
		"tactic traitor",//TACTIC_Traitor,
};

void CBattleLineCard::Init(void)
{
	CGameCard::Init();
}

void CBattleLineCard::Init(CARD_TYPE eType,int num)
{
	Init();

	if(eType >= CARD_NUM_START && eType <= CARD_NUM_END )
	{
		RayAssert(num >= 1 && num <= 10);
	}

	m_eType = eType;
	m_iNum  = num;
}

void CBattleLineCard::Update(float fTime)
{
	CGameCard::Update(fTime);
}

void CBattleLineCard::Render(void)
{
	CGameCard::Render();
}

void CBattleLineCard::Deinit(void)
{
	CGameCard::Deinit();
}

const char* CBattleLineCard::GetCardDesc(CARD_TYPE eType)
{
	RayAssert(eType >= CARD_START && eType <= CARD_END);
	return ms_DescArray[eType].m_pDesc;
}